﻿@{
    Layout = null;
    var ScrollTips = ViewData["ScrollTips"] as List<GSLMS.Entity.ScrollTip> ?? new List<GSLMS.Entity.ScrollTip>();
    var Agendas = ViewData["Agendas"] as List<GSLMS.Entity.Agenda> ?? new List<GSLMS.Entity.Agenda>();
}
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    登记查询：
                </td>
                <td>
                    @Html.TextBox("Default.CUSTNAME")
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="button" onclick="GoApplyList()">
                                            登记查询</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
    <div style="width: 100%">
        <div class="panel" defh="400" style="width: 48%; float: left; overflow:hidden">
            <h1>
                滚动提示</h1>
            <div>
                <marquee direction="up" style="height: 100%" scrolldelay="200">
                <table class="list" width="100%" style=" background-color:transparent">
                    @foreach (var item in ScrollTips)
                    {            
                        <tr>
                            <td>
                                @item.Title
                            </td>
                        </tr>
                    }
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                    <tr><td>ggggggg</td></tr>
                </table>
                </marquee>
            </div>
        </div>
        <div class="panel" defh="400" style="width: 48%; float: right; clear: none">
            <h1>
                待处理事项</h1>
            <div>
                <table class="list" width="100%">
                    @foreach (var item in Agendas)
                    {            
                        <tr>
                            <td>
                                @(MvcHtmlString.Create(item.Detail))
                            </td>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    function GoApplyList() {
        var custName = $("Default.CUSTNAME").val();
        //navTab.openTab("DianDang_Apply_ApplyList", "DianDang/Apply/ApplyList/index?CUSTNAME=" + custName, { title: "登记查询" });
        $.pdialog.open("DianDang/Default/RegInfos?CUSTNAME=" + custName, "DianDang_Apply_ApplyList", "登记查询", {});
    }
</script>